]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search: Ensure that we correctly remove remote search providers
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 11 Jul 2013 18:25:08 +0000 (14:25 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 26 Jul 2013 21:39:05 +0000 (17:39 -0400)
When we reload the remote search providers, we currently try to remove
all remote providers, and then re-scan. It turns out that we sometimes
remove the wrong providers from the remote provider list, causing us to
have some providers not correctly unloaded.

https://bugzilla.gnome.org/show_bug.cgi?id=700283

js/ui/search.js

index 03348b2d83e43a5727753d648c68431b6aca949b..1fd442e1f044f42bf91eb75e0fe71bbbc6e14fa8 100644 (file)
@@ -31,7 +31,7 @@ const SearchSystem = new Lang.Class({
 
         let remoteIndex = this._remoteProviders.indexOf(provider);
         if (remoteIndex != -1)
-            this._remoteProviders.splice(index, 1);
+            this._remoteProviders.splice(remoteIndex, 1);
     },
 
     getProviders: function() {